package com.fastCms.business.mall.pojo.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fastCms.business.frame.config.BigDecimalValueFilter;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 杭州人参大健康管理有限公司 版权所有 Copyright 2019<br>
 *
 * @Description: <br>
 * @Project: healthPro <br>
 * @CreateDate: Created in 2019年5月25日 下午3:39:40 <br>
 * @Author: < a href="jiahui.zhao@healthpro.vip">jiahui.zhao</ a>
 */
@ApiModel(value = "ProductSkuVO 对象", description = "商品sku对象")
@Data
public class ProductSkuVO {

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.UUID)
    private String id;

    @ApiModelProperty(value = "sku组合值(存储属性值,逗号分隔)")
    private String skuAttr;

    @ApiModelProperty(value = "产品ID")
    private String productId;

    @ApiModelProperty(value = "价格")
    @JsonSerialize(using = BigDecimalValueFilter.class)
    private BigDecimal price;

    @ApiModelProperty(value = "产品原价", example = "100")
    @JsonSerialize(using = BigDecimalValueFilter.class)
    private BigDecimal originalPrice;

    @ApiModelProperty(value = "成本价")
    @JsonSerialize(using = BigDecimalValueFilter.class)
    private BigDecimal costPrice;

    @ApiModelProperty(value = "sku重量（kg）")
    private Double weight;

    @ApiModelProperty(value = "规格库存")
    private Integer skuStock;

    @ApiModelProperty(value = "描述")
    private String skuDesc;

    @ApiModelProperty(value = "规格值")
    private String description;

    @ApiModelProperty(value = "排序")
    private Integer viewSort;

    @ApiModelProperty(value = "备注")
    private String remark;

    public ProductSkuVO() {
        super();
    }

}
